﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Core;

namespace WebTest
{
    public partial class JsonTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            JsonEntity je = new JsonEntity();
            je.CategoryId = 111;
            je.CategoryName = "tset";
            DataTable dt = new DataTable();
            dt.Columns.Add(new DataColumn("c1"));
            dt.Columns.Add(new DataColumn("c2"));
            dt.Rows.Add("value1", "value2");
            dt.Rows.Add("value3", "value4");
            je.dtTest = dt;
            Response.Write(Core.Json.JsonSerializer.JsonSerializerTest(je));
        }
    }
}
